/*
 * HyperlinkHandler.java
 *
 *  created: 7.10.2011
 *  charset: UTF-8
 *  license: MIT (X11) (See LICENSE file for full license)
 */
package cz.mp.k3bg.misc;

import cz.mp.k3bg.util.DesktopUtils;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;

/**
 *
 * @author Martin Pokorný
 * @version 0.1
 */
public class HyperlinkHandler  implements HyperlinkListener {
    @Override
    public void hyperlinkUpdate(HyperlinkEvent e) {
        if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            DesktopUtils.openBrowser(e.getURL());
        }
    }
}   // HyperlinkHandler.java

